﻿using System;

namespace FixedWidth.Configuration
{
	public class ParsedColumn
	{
		public string Name { get; set; }
		public Type Type { get; set; }
		public object Value { get; set; }
		public T TypedValue<T>()
		{
			if (typeof(T).IsAssignableFrom(Type))
			{
				return (T)Value;
			}
			return default(T);
		}
	}
}
